AuthCollection

constructor(authRule: String? = null, manageRule: String? = null, authAlert: AuthCollection.AuthAlertOptions? = null, oauth2: AuthCollection.OAuth2Options? = null, passwordAuth: AuthCollection.PasswordAuthOptions? = null, mfa: AuthCollection.MFAOptions? = null, otp: AuthCollection.OTPOptions? = null, authToken: <Error class: unknown class>? = null, passwordResetToken: <Error class: unknown class>? = null, emailChangeToken: <Error class: unknown class>? = null, verificationToken: <Error class: unknown class>? = null, fileToken: <Error class: unknown class>? = null, verificationTemplate: AuthCollection.EmailTemplate? = null, resetPasswordTemplate: AuthCollection.EmailTemplate? = null, confirmEmailChangeTemplate: AuthCollection.EmailTemplate? = null)

Parameters

authRule

This rule is executed every time before authentication allowing you to restrict who can authenticate.

manageRule

This rule is executed in addition to the create and update API rules. It enables superuser-like permissions to allow fully managing the auth record(s), eg. changing the password without requiring to enter the old one, directly updating the verified state or email, etc.

authAlert

whether or not to send emails to users notifying them that they logged in on a new ip.

oauth2

Options for oauth2.

passwordAuth

Options for password authentication.

mfa

Options for MFA.

otp

Options for OTP authentication.

authToken

The expiration time of a user's auth token.

passwordResetToken

The expiration time of a user's password reset token.

emailChangeToken

The expiration time of a user's email change token.

verificationToken

The expiration time of a user's verification token.

fileToken

The expiration time of a file token

verificationTemplate

The email template used when sending a verification email

resetPasswordTemplate

The email template used when sending a password reset email.

confirmEmailChangeTemplate

The email template used when sending an email change confirmation email.